<?php
namespace app\admin\model;
use think\Db;
class User{

    /**
     * 取得用户下级节点用户
     * @param unknown $id
     * @return Ambigous <>
     */
    public function getUser( $id ){
        $sql = "
            select
                id,user_no,name,create_time,level,phone,s_id,s_tree
            from
                user
            where
                s_id = ?
            ";
        $rs = Db::query($sql,[$id]);
        return $rs;
    }

}